package com.guigu.demo2;

import lombok.Data;

/**
 * @Author: janecraft
 * @Date: 2025/2/28
 * @Description: com.guigu.demo
 * @Version： 1.0
 */
@Data
public class Student1 {
    private Integer id;
    private String name;
    private Integer age;

    public void sayHello() {
        System.out.println("hello, " + this.name);
    }

    public String sayHi() {
        return "hi, " + this.name;
    }

    public void fun() {
        System.out.println("组长的fun方法");
    }

    public void fun2() {
        System.out.println("张三的fun方法");
    }

}
